/* 基础样式 */
.collaboration-board {
  position: relative;
  max-width: 100%;
  min-height: 100%;
  margin: 0 auto;
  padding: 16px;
}

/* 玻璃拟态背景层 */
.glass-bg-layer {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 玻璃拟态基础样式 */
.glass-bg {
  background: rgb(255 255 255 / 80%);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
}

/* 玻璃按钮样式 */
.glass-btn {
  color: rgb(0 0 0 / 85%) !important;
  background: rgb(255 255 255 / 20%) !important;
  border: 1px solid rgb(255 255 255 / 40%) !important;
  transition: all 0.3s ease;
}

.glass-btn.ant-btn-primary {
  color: white !important;
  background: rgb(24 144 255 / 70%) !important;
  border: 1px solid rgb(24 144 255 / 80%) !important;
}

.glass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}

/* 卡片样式 - 宽度缩小一半 */
.glass-card {
  background: rgb(255 255 255 / 85%) !important;
  border: 1px solid rgb(255 255 255 / 60%) !important;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%) !important;
  transition: all 0.3s ease;
}

.project-card {
  overflow: hidden;
  width: 50%; /* 卡片宽度缩小一半 */
  margin-bottom: 3.2px; /* 垂直间距缩小为原来的1/5 */
  border-radius: 10px;
}

.project-card.featured {
  border: 2px solid rgb(255 193 7 / 80%);
}

/* 卡片封面 */
.card-cover {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 140px;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgb(0 0 0 / 40%) !important;
  transition: opacity 0.3s;
}

.card-cover:hover .cover-overlay {
  opacity: 1;
}

.link-icon {
  font-size: 24px;
  color: white;
}

/* 卡片内容 */
.card-title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  color: rgb(0 0 0 / 85%) !important;
}

.card-description {
  margin-bottom: 12px;
  font-size: 14px;
  color: rgb(0 0 0 / 70%);
}

.card-tags {
  margin-top: 8px;
}

/* 标签样式 */
.dark-tag {
  color: rgb(0 0 0 / 80%) !important;
  background: rgb(255 255 255 / 70%) !important;
  border: 1px solid rgb(0 0 0 / 15%) !important;
}

/* 头部样式 */
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 16px;
}

/* 瀑布流布局 - 水平间距缩小为原来的1/5 */
.masonry-container {
  width: 100%;
}

.masonry-grid {
  display: flex;
  width: auto;
  margin-left: -1px; /* 负边距与padding-left保持一致 */
}

.masonry-column {
  padding-left: 1px;
  background-clip: padding-box;
}

.masonry-item {
  margin-bottom: 8px;
  width:100%;
}

/* 加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.loading-dots {
  display: flex;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: rgb(255 255 255 / 80%);
  border-radius: 50%;
}

/* 空状态 */
.empty-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
}

.empty-description {
  font-size: 16px;
  color: rgb(0 0 0 / 85%);
}

.create-button {
  margin-top: 16px;
}

/* 精选项目标识 */
.featured-star {
  margin-right: 8px;
  color: #faad14;
}

/* 响应式调整 */
@media (width <= 768px) {
  .collaboration-board {
    max-width: 95%;
    padding: 12px;
  }

  .board-header {
    flex-direction: column;
    gap: 12px;
  }

  .card-cover {
    height: 120px;
  }

  /* 在移动端恢复卡片全宽和正常间距 */
  .project-card {
    width: 100%;
    margin-bottom: 16px;
  }

  .masonry-grid {
    margin-left: -8px;
  }

  .masonry-column {
    padding-left: 8px;
  }

  .masonry-item {
    margin-bottom: 16px;
  }
}
.project-card {
  width: calc(50% - 1px); /* 减去间隔宽度 */
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.6); /* 增强边框可见性 */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* 微调阴影 */
}

/* 移动端适配 */
@media (width <= 768px) {
  .masonry-grid {
    margin-left: -8px; /* 恢复默认间隔 */
  }
  .masonry-column {
    padding-left: 8px;
  }
  .project-card {
    width: 100%; /* 恢复全宽 */
    border-width: 1px;
  }
}